package com.pk.serviceprovider;

public class Service2 implements Service {
    @Override
    public void doService() {
        System.out.println("service2 do...");
    }
}
class Service2Provider implements ServiceProvider{

    @Override
    public Service newService() {
        return new Service2();
    }
}